<?php

class Empeval_Methods_Data_Kpi {
	
	public $id;
	public $bonusGoalDesc;
	public $descOfIndicator;
	public $trend;
	public $indicatorId;
	public $weight;
	public $realization80;
	public $realization100;
	public $monitoring;
	public $selfAppraisal;
	public $resultAchieved;
	public $result;
	public $weightResult;
	public $comment;
	public $status;
	public $lastModified;
	public $created;
	
	public function __construct(EmpevalKpi $kpi) {
		$this->id = $kpi->getId();
		$this->bonusGoalDesc = $kpi->getBonusGoalDesc();
		$this->descOfIndicator = $kpi->getDescOfIndicator();
		$this->trend = $kpi->getTrend();
		$this->indicatorId = $kpi->getIndicatorId();
		$this->weight = $kpi->getWeight();
		$this->realization80 = $kpi->getRealization80();
		$this->realization100 = $kpi->getRealization100();
		$this->monitoring = $kpi->getMonitoring();
		$this->selfAppraisal = $kpi->getSelfAppraisal();
		$this->resultAchieved = $kpi->getResultAchieved();
		$this->result = ($kpi->getResult() == null) ? 0 : $kpi->getResult();
		$this->weightResult = ($kpi->getWeightResult() == null) ? 0 : $kpi->getWeightResult();
		$this->comment = $kpi->getComment();
		$this->status = $kpi->getStatus();
		$this->lastModified = $kpi->getLastModified();
		$this->created = $kpi->getCreated();
	}
	
}